import request from '@/utils/request';
import {AxiosPromise} from "axios";
import {DeviceQuery, DeviceVO,UserVO} from "./types";


export const listDevice = (query: DeviceQuery): AxiosPromise<DeviceVO[]> => {
  return request({
    url: '/device/pc/list',
    method: 'get',
    params: query
  });
};


export const getStaNum = (query: DeviceQuery): AxiosPromise<DeviceVO[]> => {
  return request({
    url: '/device/pc/staNum',
    method: 'get',
    params: query
  });
};

export const getDetail = (query: DeviceQuery): AxiosPromise<DeviceVO[]> => {
  return request({
    url: '/device/pc/detail',
    method: 'get',
    params: query
  });
};

export const usersToQuery = (query: DeviceQuery): AxiosPromise<UserVO[]> => {
  return request({
    url: '/device/pc/users',
    method: 'get',
    params: query
  });
};




